New property 'context-menu-functions' (bug#62250)
authorJuri Linkov <juri@linkov.net>
Tue, 5 Mar 2024 16:50:51 +0000 (18:50 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 5 Mar 2024 16:50:51 +0000 (18:50 +0200)
commitf16a85e317d940aa2e0f0375ec5d1917cb04ade3
tree3ffa61659c9b3307bfd86f5a023d983ab8eae378
parent9cf0f254bae79f6b6cda01e7a4b77fabec9f3f8f
New property 'context-menu-functions' (bug#62250)

* lisp/iimage.el (iimage-mode-buffer): Set context-menu-functions
text property to '(image-context-menu)'.

* lisp/image.el (image-context-menu): New function.
(put-image): Set context-menu-functions overlay property
to '(image-context-menu)'.
(insert-image, insert-sliced-image): Set context-menu-functions
text property to '(image-context-menu)'.

* lisp/mouse.el (context-menu-map): Use mouse-posn-property
'context-menu-functions' and call its funs at the end.
etc/NEWS
lisp/iimage.el
lisp/image.el
lisp/mouse.el